<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>抽奖管理后台</title>

<style>
body{background:#F4F4FF; font-size:14px; margin:auto}
.divScroll{     OVERFLOW:auto;
        scrollbar-face-color: #FFFFFF;
        scrollbar-shadow-color: #D2E5F4;
        scrollbar-highlight-color: #D2E5F4;
        scrollbar-3dlight-color: #FFFFFF;
        scrollbar-darkshadow-color: #FFFFFF;
        scrollbar-track-color: #FFFFFF; 
      scrollbar-arrow-color: #D2E5F4;
	  }
</style>
<script type="text/javascript">
	function openwin(url)
	{
		window.location=''+url+'';
	}
</script>
</head>

<body topmargin="0">
<table width="1000px" border="0" cellpadding="0" bgcolor="#F4F4FF">
  <tr>
    <td width="235" height="37">&nbsp;</td>
    <td width="759">&nbsp;</td>
  </tr>
  <tr>
    <td height="30">&nbsp;</td>
    <td>
       <input type="button" value="添加用户"  onclick="window.location='<?php echo base_url('adminroot/users/add_user');?>'"/>
        <input type="button" value="清除用户"  onclick="window.location='<?php echo base_url('adminroot/users/del_all_user');?>'"/>
    </td>
  </tr>
  <tr>
    <td height="485" align="center" valign="top">
<?php require_once 'left.php';?>
    </td>
    <td valign="top" align="center">
	<div align="center" style="width: 90%px; height: 500px; background:#FFFFFF" class="divScroll">
		 <table width="100%" border="0" cellpadding="0">
		 
          <tr >
            <td width="100%">
           <table width="100%" border="0" cellspacing="0">

  <tr>
    <td height="76" valign="top">
	<table width="100%" border="0" cellspacing="1" onMouseMove="javascript:this.bgColor='#FCFDEE';"
		onMouseOut="javascript:this.bgColor='#FFFFFF';">
	 <?php foreach($list as $key => $value){ ?>
	  <tr >
    <td height="32" colspan="9" align="left">
    <?php
    	if(!empty($value->headpic)){
    ?>
    <img src="<?php echo site_url('upload/users').'/'.$value->headpic;?>" />
    <?php 
    	}else{
    ?>
    <img src="<?php echo site_url('images/20121210202330453.jpg');?>" />
    <?php 
    	}
    ?>
    </td>
    <td height="32" align="left">
	        <?php if($value->enabled == 1){?><span style="color: #00CC00">正常<?php }?>
        <?php if($value->enabled == 0){?><span style="color: red">停用</span><?php }?>
        <a href="<?php echo base_url('adminroot/users/edit_user/id/'.$value->uid);?>">编辑</a>
        <a href="<?php echo base_url('adminroot/users/del_user/id/'.$value->uid);?>" onClick="javascript:delcfm();">删除</a>
	</td>
	  </tr>
  <tr>
    <td width="7%" align="left"><font color="#FF0000">账号:</font></td>
    <td width="10%" align="left"><?=$value->txemail?></td>
    <td width="6%" align="left"><font color="#FF0000">姓名:</font></td>
    <td width="9%" align="left"><?=$value->txusername?></td>
    <td width="7%" align="left"><font color="#FF0000">级别:</font></td>
    <td width="9%" align="left"><?=$value->gradename?></td>
    <td width="7%" align="left"><font color="#FF0000">金币:</font></td>
    <td width="18%" align="left"><?=$value->txgoldnum?></td>
    <td width="6%" align="left"><font color="#FF0000">国家:</font></td>
    <td width="21%" align="left"><?=$value->countryname?></td>
  </tr>
  <tr>
    <td align="left"><font color="#FF0000">住址:</font></td>
    <td colspan="6" align="left"><?=$value->txaddress?></td>
    <td colspan="3" align="left"><font color="#FF0000">收款账号:</font>      <?=$value->txaccount?></td>
    </tr>
	  <tr>
    <td align="left">&nbsp;</td>
    <td colspan="6" align="left">&nbsp;</td>
    <td align="left">&nbsp;</td>
    <td colspan="2" align="left">&nbsp;</td>
    </tr>
	<?php
	}
	?>
</table></td>
  </tr>
</table>
            </td>
          </tr>
            

                    

                    
        </table>
	<div>
    
    </td>
  </tr>
</table>
</body>
</html>
